package com.bulletelc.apollopre.module.main.center.orders.fragment;

import com.bulletelc.apollopre.entity.OrderDetailBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * author: lhl
 * date  : 2018/2/3
 * desc  : TODO
 */

public interface OrderStateContract {

    interface View extends IView {
        void onSuccess(List<OrderDetailBean> orderDetailBeans,int pageCount);
        void onFail(String fail);
        void onError(String error);

        void onSuccessCancelOrder();
        void onFailCancelOrder(String fail);
        void onErrorCancelOrder(String error);
    }

    interface Presenter extends IPresenter<View> {
        void getOrderList(int page);
        void getOrderList(String json,int page);
        void cancelOrder(String json);
    }

}
